import http from "./http";

const getUserArticleList = (v) => {
    //data是参数，里面传入登录信息
    return http({
        method: "get", //请求方法
        url: "/api/user/article/list/" + v.audit + "/" + v.userId + "/" + v.pageNum + "/" + v.pageSize,
        responseType: "json",
        headers: {
            "Content-Type": "application/x-www-form-urlencoded",
        },
    });
};
const getUserResourceList = (v) => {
    //data是参数，里面传入登录信息
    return http({
        method: "get", //请求方法
        url: "/api/user/resource/list/" + v.audit + "/" + v.userId + "/" + v.pageNum + "/" + v.pageSize,
        responseType: "json",
        headers: {
            "Content-Type": "application/x-www-form-urlencoded",
        },
    });
};
const getUserCommentList = (v) => {
    //data是参数，里面传入登录信息
    return http({
        method: "get", //请求方法
        url: "/api/user/comment/list" + "/" + v.userId + "/" + v.pageNum + "/" + v.pageSize,
        responseType: "json",
        headers: {
            "Content-Type": "application/x-www-form-urlencoded",
        },
    });
};

export { getUserArticleList,getUserResourceList,getUserCommentList };